class VideoModel {
  int? errcode;
  String? errmsg;
  List<VideoListModel>? data;
  String? message;

  VideoModel({this.errcode, this.errmsg, this.data, this.message});

  VideoModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <VideoListModel>[];
      json['data'].forEach((v) {
        data!.add(new VideoListModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class VideoListModel {
  int? id;
  String? title;
  String? sTitle;
  String? naviContentTf;
  int? comments;
  String? createDate;
  String? dateBeauty;
  String? vurl;
  String? categName;
  String? content;
  String? author;
  var header_img;
  bool? isCollect;
  String? souce;

  VideoListModel(
      {this.id,
        this.title,
        this.sTitle,
        this.naviContentTf,
        this.comments,
        this.createDate,
        this.dateBeauty,
        this.vurl,
        this.categName,
        this.content,
        this.author,
        this.header_img,
        this.isCollect,
        this.souce});

  VideoListModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    sTitle = json['s_title'];
    naviContentTf = json['naviContentTf'];
    comments = json['comments'];
    createDate = json['create_date'];
    dateBeauty = json['date_beauty'];
    vurl = json['vurl'];
    categName = json['categ_name'];
    content = json['content'];
    author = json['author'];
    header_img = json['header_img'];
    isCollect = json['is_collect'];
    souce = json['souce'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['s_title'] = this.sTitle;
    data['naviContentTf'] = this.naviContentTf;
    data['comments'] = this.comments;
    data['create_date'] = this.createDate;
    data['date_beauty'] = this.dateBeauty;
    data['vurl'] = this.vurl;
    data['categ_name'] = this.categName;
    data['content'] = this.content;
    data['author'] = this.author;
    data['is_collect'] = this.isCollect;
    data['souce'] = this.souce;
    return data;
  }
}
